package jp.co.sn.mml.pojo.tdiptmgrp;


public class TdiptmgrpId implements java.io.Serializable { 

	//グループ番号
	private Long grpNo;
	//行番号
	private Long seq;

	/** default constructor */
	public TdiptmgrpId(){

	}

	/** full constructor */
	public TdiptmgrpId(Long grpNo,Long seq){
		this.grpNo = grpNo;
		this.seq = seq;
	}

	//Property accessors
	public Long getGrpNo(){
		return this.grpNo;
	}

	public void setGrpNo(Long grpNo){
		this.grpNo=grpNo;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdiptmgrpId))
			return false;

		TdiptmgrpId castOther = (TdiptmgrpId) other;

		return ((this.getGrpNo() ==  castOther.getGrpNo())
				||(this.getGrpNo()!=null && castOther.getGrpNo() !=null 
					&& castOther.getGrpNo() !=null 
					&& this.getGrpNo().equals(castOther.getGrpNo())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGrpNo() == null ? 0 : this.getGrpNo().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}